package io.kubesphere.devops.core;

import lombok.Getter;

import java.util.HashMap;
import java.util.Map;

@Getter
public enum PartitionZone {

    ORGIN_MASTER,
    ZONE1,
    ZONE2;

    private static Map<PartitionZone, Integer> valueMap = new HashMap<>();

    /** 初始化代码表 */
    static {
        valueMap.put(PartitionZone.ORGIN_MASTER, -1);
        valueMap.put(PartitionZone.ZONE1, 2);
        valueMap.put(PartitionZone.ZONE2, 1);
    }
}
